﻿namespace EasyWeb
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    internal static partial class EWHelpers
    {
        public static void Merge(this IDictionary<string, object> instance, IDictionary<string, object> from)
        {
            EWDebug.IsNotNull(instance, "instance");

            if (from != null)
            {
                foreach (KeyValuePair<string, object> pair in from)
                {
                    instance[pair.Key] = pair.Value;
                }
            }
        }
    }
}
